//
//  HJVisitFriendRequest.m
//  Keping
//
//  Created by apple on 2017/11/4.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "HJVisitFriendRequest.h"

@implementation HJVisitFriendRequest
{
    NSString *_requestUrl;
}

- (instancetype)initWithIsBlock:(NSString *)isblock {
    self = [super init];
    if (self) {
        _requestUrl = [NSString stringWithFormat:@"/intelligent-community/api/ec/relation/v1/relationFriends/list.htm?isBlock=%@",isblock];
    }
    return self;
}

-(NSString *)requestUrl
{
    return _requestUrl;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

@end

@implementation HJVisitFriendInfoRequest
{
    NSString *_requestUrl;
}

- (instancetype)initWithKey:(NSString *)key {
    self = [super init];
    if (self) {
        _requestUrl = [NSString stringWithFormat:@"/intelligent-community/api/biz/ou/v1/partys/getById/%@.htm",key];
    }
    return self;
}

-(NSString *)requestUrl
{
    return _requestUrl;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

@end


@implementation HJVisitFriendInfoSendRequest

-(NSString *)requestUrl
{
    return kVisitEntitysSendURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodPOST;
}

-(id)requestArgument
{
    return self.params;
}

@end

@implementation HJInviteSelectVisitationRequest

-(NSString *)requestUrl
{
    return kVisitEntitysHistoryListURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

@end

@implementation HJInviteInviteEntityItemsnRequest

-(NSString *)requestUrl
{
    return kInviteEntityItemsHistoryListURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

@end

@implementation HJRelationFriendsRequest
{
    NSString *_requestUrl;
}

- (instancetype)initWithIsBlock:(NSString *)isblock {
    self = [super init];
    if (self) {
        _requestUrl = [NSString stringWithFormat:@"/intelligent-community/api/ec/relation/v1/relationFriends/list.htm?isBlock=%@",isblock];
    }
    return self;
}

-(NSString *)requestUrl
{
    return _requestUrl;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

@end

@implementation HJVisitFriendAddRequest

-(NSString *)requestUrl
{
    return kinviteEntityItemsSendURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodPOST;
}

-(id)requestArgument
{
    return self.params;
}

@end

@implementation HJInviteEntitysAddRequest

-(NSString *)requestUrl
{
    return kInviteEntitysSendURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodPOST;
}

-(id)requestArgument
{
    return self.params;
}

@end




